﻿CREATE PROCEDURE [dbo].[GetPngFile]
	@WorkflowGuid VARCHAR(50) 
AS
	SELECT PngFile FROM PngFiles WHERE WorkflowGuid=@WorkflowGuid AND Version IN (
		SELECT MAX(Version) FROM PngFiles WHERE WorkflowGuid=@WorkflowGuid);
RETURN 0;